package com.gsx.controller;

import com.gsx.bean.Brand;
import com.gsx.service.BrandSevice;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.List;


/**
 * @Description TODO
 * @Authoe gsx
 * @Date 2021/04/06 上午 11:56
 **/
@Controller
@RequestMapping("/brand")
public class BrandController {
    @Resource
    private BrandSevice brandSevice;

    @ResponseBody
    @RequestMapping("/brand")
    public List<Brand>  getBrand(){
        return brandSevice.getALL();
    }
}
